#include "Ground.h"

Ground::Ground(int w)
{
	_width = w;
}

Ground::~Ground()
{
}

QRectF Ground::boundingRect() const
{
	return QRectF(0, 0, _width, 20);
}

void Ground::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
	QBrush brush(QColor(0, 255, 255), Qt::BDiagPattern);
	painter->setBrush(brush);
	painter->drawRect(0, 0, _width, 20);
}
